<%@ include file="/WEB-INF/views/framework/global.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%> 

<c:set var="title"><fmt:message key="app.name" /></c:set>
<html>
	<head>
		<title><decorator:title default="${date}"/></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link rel="stylesheet" href="${path}/static/stylesheets/default_theme/framework.css" type="text/css" media="screen">
		<decorator:head />
	</head>
<body class="kk">
<!-- 只有注册用户才可以使用本系统 -->
<c:if test="${user.id != null}">
<!-- 头部菜单 -->
<header class="header navbar navbar-inverse navbar-fixed-top">
	<br><br>
	<div class="row top_info">
		<div class="col-md-10 rel"><h1 class="fw abs"><fmt:message key="app.name" /></h1></div>
	<div class="col-md-2">
		<div class="row">
			<div class="col-md-3">
				<sec:authorize access="hasRole('ADMIN')">
				<a class="l geren" href="<c:url value='/console'/>">
					<span class="sys_ctrl glyphicon glyphicon-cog" data-toggle="tooltip" data-placement="bottom" data-original-title="系统设置"></span>
				</a>
				</sec:authorize>
			</div>
			<div class="col-md-3">
				<a class="l geren" href="<c:url value='/paper/user/update'/>">
					<span class="sys_ctrl glyphicon glyphicon-user" data-toggle="tooltip" data-placement="bottom" data-original-title="个人信息"></span>
				</a>
			</div>
			<div class="col-md-3">
				<a class="l geren rel shake" href="<c:url value='/paper/message'/>">
					<i class="messge_bubble">3</i>
					<span class="sys_ctrl glyphicon glyphicon-envelope" data-toggle="tooltip" data-placement="bottom" data-original-title="站内消息"></span>
				</a>
			</div>
			<div class="col-md-3">
				<a class="l geren" href="<c:url value='/logout'/>">
					<span class="sys_ctrl glyphicon glyphicon-log-out" data-toggle="tooltip" data-placement="bottom" data-original-title="注销"></span>
				</a>
			</div>
		</div>
	</div>
</div>
<div class="line"></div>
<nav class="nav main_nav">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
	</div>
	<div class="collapse navbar-collapse">
		<ul class="nav navbar-nav">
			<li class="active"><a class="glyphicon glyphicon-home level-top-menu" id="home" href="<c:url value='/index'/>"> 首页</a></li>
			<sec:authorize access="hasRole('TEACHER')">
				<li class="dropdown">
					<a href="<c:url value='/paper/topic/'/>" class="glyphicon glyphicon-folder-close level-top-menu dropdown-toggle" data-toggle="dropdown"> 课题管理<b class="caret"></b></a>
					<ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1">
					    <li><a href="<c:url value='/paper/topic/confirm'/>" tabindex="-1">课题审阅</a></li>
						<li><a href="<c:url value='/paper/topic/mytopic'/>" tabindex="-1">课题维护</a></li>
					</ul>
				</li>
			    <li><a class="glyphicon glyphicon-folder-close level-top-menu" href="<c:url value='/paper/report/confirm'/>"> 报告审阅</a></li>
				<li>
					<a href="<c:url value='/paper/paper/'/>" class="glyphicon glyphicon-folder-close level-top-menu dropdown-toggle" data-toggle="dropdown"> 论文管理<b class="caret"></b></a>
					<ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1">
						<li><a href="<c:url value='/paper/paper/confirm'/>" tabindex="-1">论文审阅</a></li>
						<li><a href="<c:url value='/paper/paper/query'/>" tabindex="-1">归档论文查询</a></li>
					</ul>
				</li>
				<li><a class="glyphicon glyphicon-pencil level-top-menu" href="<c:url value='/paper/student'/>" data-index="4_0" data-menu="4">学生管理</a></li>
			</sec:authorize>

			<sec:authorize access="hasRole('STUDENT')">
			    <li><a class="glyphicon glyphicon-pencil level-top-menu" href="<c:url value='/paper/topic/student_topic'/>"> 我的课题</a></li>
				<li><a class="glyphicon glyphicon-pencil level-top-menu" href="<c:url value='/paper/report/'/>"> 开题报告</a></li>
				<li><a class="glyphicon glyphicon-pencil level-top-menu" href="<c:url value='/paper/paper'/>"> 我的论文</a></li>
			</sec:authorize>
			<sec:authorize access="hasRole('ADMIN')">
				<li><a class="glyphicon glyphicon-briefcase level-top-menu" href="#contact"> 统计分析</a></li>
				<li><a class="glyphicon glyphicon-pencil level-top-menu" href="#contact"> 论文维护</a></li>
			</sec:authorize>

		</ul>
	</div><!--/.nav-collapse -->
</nav>
</header><!-- /头部菜单 -->

  </c:if>
<decorator:body />

<!-- 尾部 -->
<footer></footer><!-- /尾部 -->
<script src="${path}/static/javascripts/layout.js"></script>
	</body>
</html>

